package com.zj.ssm12.service.impl;

import com.zj.ssm12.dao.UserDAO;
import com.zj.ssm12.entity.User;
import com.zj.ssm12.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaojin
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class UserServiceImpl implements UserService {

    private final UserDAO userDAO;

    @Override
    public List<User> queryAll() {
        return userDAO.queryAll();
    }
}
